package com.lam.generator.entity;

import com.lam.common.validate.group.Add;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotBlank;
import java.util.Date;
import com.lam.common.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import javax.validation.constraints.Null;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lam.common.base.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;

/**
 * 代码生成配置信息对象 gen_table_ext_config
 * 
 * @author admin
 * @date 2022-11-02
 */
@TableName("gen_table_ext_config")
public class GenTableExtConfig implements BaseEntity{

    /** 主键 */
    @Null(groups = Add.class, message="id必须为空")
    @TableId(type = IdType.AUTO)
    private String id;
    
    /** 归属表编号 */
    @NotBlank(message = "归属表编号不能为空")
    @Size(max = 64, message = "归属表编号长度不能超过64个字符")
    private String tableId;

    /** 模块简写 */
    @Size(max = 100, message = "模块简写长度不能超过100个字符")
    private String moduleShort;

    /** 包名 */
    @Size(max = 200, message = "包名长度不能超过200个字符")
    private String packageName;

    /** UI组件位置 */
    @Size(max = 200, message = "UI组件位置长度不能超过200个字符")
    private String uiPath;

    /** 创建人 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = DateUtil.PATTERN_DEFAULT)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 修改人 */
    private String updateBy;

    /** 修改时间 */
    @JsonFormat(pattern = DateUtil.PATTERN_DEFAULT)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    } 

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getTableId() {
        return tableId;
    }    
    
    public void setModuleShort(String moduleShort) {
        this.moduleShort = moduleShort;
    }

    public String getModuleShort() {
        return moduleShort;
    }    
    
    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getPackageName() {
        return packageName;
    }    
    
    public void setUiPath(String uiPath) {
        this.uiPath = uiPath;
    }

    public String getUiPath() {
        return uiPath;
    }    
    
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateBy() {
        return createBy;
    }    
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTime() {
        return createTime;
    }    
    
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }    
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }    
    

}
